package com.wandong.cinema.entity;

import java.util.Date;

public class Show {
    private String showId;
    private String movieId;
    private String hallId;
    private Date showTime;
    private double price;
    private String status; // 未开始、放映中、已结束

    public Show(String showId, String movieId, String hallId, Date showTime, double price, String status) {
        this.showId = showId;
        this.movieId = movieId;
        this.hallId = hallId;
        this.showTime = showTime;
        this.price = price;
        this.status = status;
    }

    public String getShowId() {
        return showId;
    }

    public void setShowId(String showId) {
        this.showId = showId;
    }

    public String getMovieId() {
        return movieId;
    }

    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }

    public String getHallId() {
        return hallId;
    }

    public void setHallId(String hallId) {
        this.hallId = hallId;
    }

    public Date getShowTime() {
        return showTime;
    }

    public void setShowTime(Date showTime) {
        this.showTime = showTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return String.format("场次ID: %s, 影片ID: %s, 放映厅ID: %s, 时间: %s, 票价: %.2f, 状态: %s",
                showId, movieId, hallId, showTime, price, status);
    }
}
